using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 系统配置仓储接口
    /// </summary>
    public interface ISystemConfigurationRepository : IRepository<SystemConfig>
    {
        Task<SystemConfig?> GetByKeyAsync(string key);
        Task<string> GetValueByKeyAsync(string key);
        Task<T> GetValueByKeyAsync<T>(string key);
        Task<IEnumerable<SystemConfig>> GetByCategoryAsync(string category);
    }
}